package com.nidu.demo.base;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * 批量更新命令
 *
 * @author auto
 */
@Data
@Schema(description = "批量更新命令")
@EqualsAndHashCode(callSuper = true)
public class BatchUpdateCmd extends BaseCmd {

    /**
     * 新增json字符串
     */
    @NotNull(message = "更新json字符串不能为空")
    @Schema(description = "更新json字符串", example = "{ 1: { name: 'Allan' }, 2: { name: 'Walter' } } }")
    private String update;

} 